package com.qike.duola.dto;

import com.qike.duola.config.BaseObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @Author: Eric.zhou
 * @Date: 2020/8/24 11:47
 */
@ApiModel("资源添加")
public class ResourceAddDto extends BaseObject {
@ApiModelProperty("父级id 如果本身就是父级 parentId = 0")
    private Long parentId;
    @ApiModelProperty("资源名称")
    private String name;
    @ApiModelProperty("资源地址")
    private String url;
    @ApiModelProperty("资源类型 菜单,url,按钮")
    private String type;
    @ApiModelProperty("权限字符串  system:role:create   role 代表当前模块  create 代表动作标识")
    private String permission;

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
